package utilts;

public enum ResponseCode {
    SUCCESS(10,"操作成功！"),
    SUCCESS_LOGIN(11,"登录成功！！"),
    NOT_LOGIN(12,"未登录"),
    NOT_USER(13,"不存在这个用户！"),
    NOT_PASSWORD(14,"密码不正确！"),
    ERROR(15,"操作失败！"),
    SUCCESS_ACTIVE(16,"激活成功！"),
    SUCCESS_REGISTERT(17,"注册成功"),
    SUCCESS_ADD_GOODS_ID(19,"跟据商品ID添加商品成功！！"),
    SUCCESS_QUERY_GOODS(18,"查询商品成功"),
    SUCCESS_QUERY_CATEGORU(32,"查询菜单成功"),
    ERROR_DB(20,"数据发生异常！"),
    ERROR_NAME_PASSWORD(21,"用户名或密码不正确！"),
    NOT_ACTIVE(22,"用户未激活"),
    NOT_PARAMETER(23,"请求中没有参数"),
    ERROR_ACTIVE(24,"激活用户失败！"),
    ERROR_REGISTERT(25,"注册失败！"),
    EEROR_ExPIRE(27,"激活码过期！"),
    EEROR_QUERY_GOODS(28,"查询商品失败"),
    EEROR_ADD_GOODS(29,"添加商品失败"),
    EEROR_QUERY_ID_GOODS(30,"根据ID查询商品失败"),
    EEROR_QUERY_CATEGORU(31,"查询菜单失败"),
    ERRORA_PARAM(32,"请求参数异常！"),
    ERROR_NUMBER(33,"库存不够，请减少购买量"),
    SUCCESS_REGUSTER(34,"注销成功");






    private int code;
    private String desc;

    ResponseCode(int code,String desc){
        this.code = code;
        this.desc = desc;
    }

    public int getCode(){
        return code;
    }

    public String getDesc(){
        return desc;
    }
}
